package com.ykzb.project.mapper;

import com.ykzb.project.model.CategoryInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by mac on 2017/3/31.
 */
@Repository(value="categoryMapper")
public interface CategoryMapper {

    List<CategoryInfo> selectCategory(Map<String,Object> param);

    Long getIdByName(String name);

    String getNameById(@Param("id")Long id);
}
